package com.wx.domain.vo;

import com.wx.utils.TreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * Title: AddressTreeVo<br>;
 * Description: <br>;
 * Copyright: Copyright (c) 2017<br>;
 * Company: <br>;
 *
 * @author xinglinglove1029@163.com<br>
 * 2018/11/21 17:05
 */
@ApiModel("省市区树Vo")
public class AddressTreeVo extends TreeNode implements Serializable {

    private static final long serialVersionUID = 6617247638328913631L;
    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String areaId;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String addressName;

    /**
     * 父数据字典名称
     */
    @ApiModelProperty("父数据字典名称")
    private String parentName;

    /**
     * 禁用
     */
    @ApiModelProperty("禁用")
    private boolean isDisabled;

    /**
     * 层级
     */
    @ApiModelProperty("层级 0：省 1：市 2：区县")
    private Integer level;

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public boolean getIsDisabled() {
        return isDisabled;
    }

    public void setIsDisabled(boolean disabled) {
        isDisabled = disabled;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("AddressTreeVo{");
        sb.append("areaId='").append(areaId).append('\'');
        sb.append(", addressName='").append(addressName).append('\'');
        sb.append(", parentName='").append(parentName).append('\'');
        sb.append(", isDisabled=").append(isDisabled);
        sb.append(", level=").append(level);
        sb.append('}');
        return sb.toString();
    }
}
